package com.cn.tool;

import cn.hutool.core.collection.CollectionUtil;
import com.cn.Object.Person;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.List;

/**
 * @author he_ls
 * @since 2024/6/28 17:13
 **/
public class CollectionTest {
    public static void main(String[] args) {
        ArrayList<String> toysB = CollectionUtil.newArrayList("霸天虎", "汽车人", "天罡变");
        ArrayList<String> toysG = CollectionUtil.newArrayList("洋娃娃", "汽车人", "小马驹");
        Person p = new Person("小明", 12, "男", "深圳市", new Date(1324234215435L), toysB);
        Person pNull = new Person("小红", null, "女", null, null, toysG);

        test1(toysB);

    }

    static void test1(List<String> list) {
        System.out.println(list);
        String join = CollectionUtil.join(list, "-#-");

    }

}
